Vue.prototype.msg = function (value) {
    if (value) {
        value = value.split(',');
        html = '';
        for (var a = 0; a < value.length; a++) {
            html += '<li style="margin-right: 10px">' + value[a] + '</li>'
        }
        return html
    }

};

var info = new Vue({
    el: "#huodong",
    data: {
        information: '',
        id: 1
    },

    mounted: function () {
        axios.get(HOST + 'info/' + this.id + '/')
            .then(response => {
                console.log(response.data)
                this.information = response.data
            })
            .catch(error => {
                console.log(error)
            })
    },
    filters: {
        title: function (value) {
            if (value){
                value = value.slice(0,value.indexOf(" "))
                return value
            }
        },
        time:function (value) {
            if (value){
                value = value.slice(value.indexOf(" "))
                return value
            }
        }
    }
})